package es.yporqueno.cargadores {
	
	import flash.events.Event;
	import flash.events.HTTPStatusEvent;
	import flash.events.ProgressEvent;

	public class CargadorEvent extends Event {

		private var _exito:Boolean = false;
		private var _errorText:String = "";
		private var _progress:Number = 0;
		private var _status:int = 0;
		
		public static const COMPLETE:String = Event.COMPLETE;
		public static const PROGRESS:String = ProgressEvent.PROGRESS;
		public static const HTTP_STATUS:String = HTTPStatusEvent.HTTP_STATUS;
		public static const OPEN:String = Event.OPEN;
		public static const INIT:String = Event.INIT;
		public static const UNLOAD:String = Event.UNLOAD;

		public function CargadorEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) {
			super(type, bubbles, cancelable);
		}
		
		// Getter de _exito
		public function get exito():Boolean{
			return _exito;
		}
		// Setter de _exito
		public function set exito(e:Boolean):void{
			_exito = e;
		}
		
		
		// Getter de _errorText
		public function get errorText():String{
		     return _errorText;
		}
		// Setter de _errorText
		public function set errorText(e:String):void{
		     _errorText = e;
		}
		
		
		// Getter de _progress
		public function get progress():Number{
		     return _progress;
		}
		// Setter de _progress
		public function set progress(v:Number):void{
		     _progress = v;
		}
		
		// Getter de _status
		public function get status():int{
		     return _status;
		}
		// Setter de _status
		public function set status(v:int):void{
		     _status = v;
		}

	}
}
